'''
Company: TWL
Author: xue jian
Email: xuejian@kanzhun.com
Date: 2020-11-25 20:58:06
'''
#
# @lc app=leetcode.cn id=210 lang=python3
#
# [210] 课程表 II
#

# @lc code=start
from typing import List
class Solution:
    def findOrder(self, numCourses: int, prerequisites: List[List[int]]) -> List[int]:
        import collections
        store=collections.defaultdict(list)
        for i in prerequisites:
            store[i[0]].append(i[1])
# @lc code=end

